package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the receipt_payment database table.
 * 
 */
@Entity
@Table(name="receipt_payment")
public class ReceiptPayment implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int paymentId;

	private float amount;

	//bi-directional many-to-one association to Receipt
    @ManyToOne
	@JoinColumn(name="ReceiptId")
	private Receipt receipt;

	//bi-directional many-to-one association to PaymentMode
    @ManyToOne
	@JoinColumn(name="ModeId")
	private PaymentMode paymentMode;

    public ReceiptPayment() {
    }

	public int getPaymentId() {
		return this.paymentId;
	}

	public void setPaymentId(int paymentId) {
		this.paymentId = paymentId;
	}

	public float getAmount() {
		return this.amount;
	}

	public void setAmount(float amount) {
		this.amount = amount;
	}

	public Receipt getReceipt() {
		return this.receipt;
	}

	public void setReceipt(Receipt receipt) {
		this.receipt = receipt;
	}
	
	public PaymentMode getPaymentMode() {
		return this.paymentMode;
	}

	public void setPaymentMode(PaymentMode paymentMode) {
		this.paymentMode = paymentMode;
	}
	
}